home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 …SCII & the Runetime Code / ADC Developer CD (1992-07) (''Butch ASCII And The Runtime Code'')_iso / Dev.CD 199207.iso / Developer Essentials / MPW Interfaces & Libraries / CIncludes / CRMSerialDevices.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-29  |  1.2 KB  |  62 lines  |  [TEXT/MPS ]

  1.  
  2. /************************************************************
  3.  
  4. Created: Wednesday, September 11, 1991 at 2:05 PM
  5.  CRMSerialDevices.h
  6.  C Interface to the Macintosh Libraries
  7.  
  8.  
  9.   Copyright Apple Computer, Inc. 1988-1991
  10.   All rights reserved
  11.  
  12. ************************************************************/
  13.  
  14.  
  15. #ifndef __CRMSERIALDEVICES__
  16. #define __CRMSERIALDEVICES__
  17.  
  18. #ifndef __TYPES__
  19. #include <Types.h>
  20. #endif
  21.  
  22.  
  23. enum {
  24.  
  25.  
  26. /*    for the crmDeviceType field of the CRMRec data structure */
  27.  crmSerialDevice = 1,
  28.  
  29.  
  30. /*  version of the CRMSerialRecord below */
  31.  curCRMSerRecVers = 1
  32. };
  33.  
  34. /* Maintains compatibility w/ apps & tools that expect an old style icon    */
  35. struct CRMIconRecord {
  36.  long oldIcon[32];    /* ICN#    */
  37.  long oldMask[32];
  38.  Handle theSuite;    /* Handle to an IconSuite    */
  39.  long reserved;
  40. };
  41.  
  42. typedef struct CRMIconRecord CRMIconRecord;
  43. typedef CRMIconRecord *CRMIconPtr, **CRMIconHandle;
  44.  
  45. struct CRMSerialRecord {
  46.  short version;
  47.  StringHandle inputDriverName;
  48.  StringHandle outputDriverName;
  49.  StringHandle name;
  50.  CRMIconHandle deviceIcon;
  51.  long ratedSpeed;
  52.  long maxSpeed;
  53.  long reserved;
  54. };
  55.  
  56. typedef struct CRMSerialRecord CRMSerialRecord;
  57. typedef CRMSerialRecord *CRMSerialPtr;
  58.  
  59.  
  60.  
  61. #endif
  62.